﻿using System;

namespace WeiSha.Core.Images
{
	// Token: 0x0200003F RID: 63
	public class Name
	{
		// Token: 0x06000297 RID: 663 RVA: 0x00011AF4 File Offset: 0x0000FCF4
		public static string ToSmall(string file)
		{
			bool flag = string.IsNullOrWhiteSpace(file);
			string text;
			if (flag)
			{
				text = string.Empty;
			}
			else
			{
				string text2 = string.Empty;
				string text3 = string.Empty;
				bool flag2 = file.IndexOf(".") > -1;
				if (flag2)
				{
					text2 = file.Substring(file.LastIndexOf("."));
					text3 = file.Substring(0, file.LastIndexOf("."));
				}
				else
				{
					text3 = file;
				}
				text = text3 + Name._small_tag + text2;
			}
			return text;
		}

		// Token: 0x06000298 RID: 664 RVA: 0x00011B74 File Offset: 0x0000FD74
		public static string ToOriginal(string small)
		{
			bool flag = string.IsNullOrWhiteSpace(small);
			string text;
			if (flag)
			{
				text = string.Empty;
			}
			else
			{
				string text2 = string.Empty;
				string text3 = string.Empty;
				bool flag2 = small.IndexOf(".") > -1;
				if (flag2)
				{
					text2 = small.Substring(small.LastIndexOf("."));
					text3 = small.Substring(0, small.LastIndexOf("."));
				}
				else
				{
					text3 = small;
				}
				bool flag3 = text3.IndexOf(Name._small_tag) > -1;
				if (flag3)
				{
					text3 = text3.Substring(0, text3.LastIndexOf(Name._small_tag));
				}
				text = text3 + text2;
			}
			return text;
		}

		// Token: 0x040000D2 RID: 210
		private static string _small_tag = "_small";
	}
}
